## 指定最低版本
cmake_minimum_required(VERSION 3.5.1)

## 库路径
link_directories(${LIBPATH})

set(MODBUS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../..)

## 搜索源文件
include_directories(${MODBUS_PATH}/inc)
include_directories(${MODBUS_PATH}/port/linux)

## modbus_demo
set(MODBUS_LINUX_TEST_SRC   main.c)
set(EXECUTABLE_OUTPUT_PATH ${EXECPATH})
add_executable       (main ${MODBUS_LINUX_TEST_SRC})
set_target_properties(main PROPERTIES OUTPUT_NAME "modbus_linux_test")
